package gstudio.ui;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;

/*
 * 执行了初始化
 */
public class MP3andTextViewer extends TableViewer {

	private class PlayerContentProvider implements IStructuredContentProvider {
		public void dispose() {

		}

		public Object[] getElements(Object arg0) {
			return null;
		}

		public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		}
	}

	private class PlayerLabelProvider implements ITableLabelProvider {
		public void addListener(ILabelProviderListener arg0) {
		}

		public void dispose() {
		}

		public Image getColumnImage(Object arg0, int arg1) {
			return null;
		}

		public String getColumnText(Object arg0, int arg1) {
			return null;
		}

		public boolean isLabelProperty(Object arg0, String arg1) {
			return false;
		}

		public void removeListener(ILabelProviderListener arg0) {
		}

	}

	public static void main(String args[]) {

	}

	public MP3andTextViewer(Composite parent, int style) {
		super(parent, style);
		init();
	}

	private void init() {
		this.setContentProvider(new PlayerContentProvider());
		this.setLabelProvider(new PlayerLabelProvider()); 
	}
}
